<template>
  <div>
    <span @click="ddd">{{msg}}</span>
    <p>{{aa}}</p>
  </div>
</template>

<script>
export default {
  name: "value",
  components: {},
  data() {
    return {
      msg:'hjsdksjdsl',
      aa:'',
    };
  },
  methods:{
    ddd(){
      this.aa="子组件的方法！！！";
      //调用父组件方法
      this.$emit("refreshData")
    },
  },
  computed: {},
};
</script>

<style lang="less" scoped>
</style>